﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace SXFramWork.Core
{
    /// <summary>
    /// 设置权限(app)
    /// </summary>
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
    public class ApiPowerAttribute:Attribute
    {
        /// <summary>
        /// 设置权限名称
        /// </summary>
        /// <param name="title">名称</param>
        public ApiPowerAttribute(string title)
        {
            this.Title = title;
        }
        /// <summary>
        /// 权限名称
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 唯一编码 app_user_add
        /// </summary>
        public string Code { get; set; }

    }
}
